﻿using NMock2.Syntax;
using NMockExtensions;

namespace NMockExtensionsDotNet3._5
{
    public static class ExtensionsForIMethodSyntax 
    {
        public static IArgumentSyntax Method<T1>(this IMethodSyntax methodSyntax, string methodName)
        {
            return methodSyntax.Method(new GenericMethodMatcher(methodName, typeof (T1)));
        }

        public static IArgumentSyntax Method<T1, T2>(this IMethodSyntax methodSyntax, string methodName)
        {
            return methodSyntax.Method(new GenericMethodMatcher(methodName, typeof (T1), typeof (T2)));
        }

        public static IArgumentSyntax Method<T1, T2, T3>(this IMethodSyntax methodSyntax, string methodName)
        {
            return methodSyntax.Method(new GenericMethodMatcher(methodName, typeof (T1), typeof (T2), typeof (T3)));
        }
    }
}